<ul class="nav nav-pills nav-stacked">
    <?php
    $sql = "SELECT * FROM doc 
    INNER JOIN docarea ON doc.doc_are_id=docarea.doc_are_id 
    WHERE doc.sta_id='1' AND docarea.doc_tip_id='{$linha_doctipo['doc_tip_id']}'
    ORDER BY doc.doc_id DESC LIMIT 0,5";
    $res = sql($sql);
    $i=0;
    while($linha = mysql_fetch_array($res)) {
        if ($i == 0) { $class = "class='active'"; } else { $class=""; }
    ?>
    <li <?=$class;?>><a href="<?=$linha['doc_url'];?>" target='_blank'><?="{$linha['doc_nome']}&nbsp;&nbsp;({$linha['doc_are_nome']})&nbsp;&nbsp;-&nbsp;&nbsp;".todatabr($linha['doc_data'])."&nbsp;&nbsp;{$linha['doc_hora']} Z";?></a></li>
    <?php
    $i++;
    } 
    ?>
</ul>
<p style="text-align: right;"><a href="#docfull" data-toggle="modal"><i class="icon-plus"></i> <?=$t_visu;?></a></p>
<?php include "full.php"; ?>                
